package com.pmsystem.pojo;

import java.util.ArrayList;
import java.util.List;

public class PayServerExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PayServerExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPayServerIdIsNull() {
            addCriterion("pay_server_id is null");
            return (Criteria) this;
        }

        public Criteria andPayServerIdIsNotNull() {
            addCriterion("pay_server_id is not null");
            return (Criteria) this;
        }

        public Criteria andPayServerIdEqualTo(Integer value) {
            addCriterion("pay_server_id =", value, "payServerId");
            return (Criteria) this;
        }

        public Criteria andPayServerIdNotEqualTo(Integer value) {
            addCriterion("pay_server_id <>", value, "payServerId");
            return (Criteria) this;
        }

        public Criteria andPayServerIdGreaterThan(Integer value) {
            addCriterion("pay_server_id >", value, "payServerId");
            return (Criteria) this;
        }

        public Criteria andPayServerIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("pay_server_id >=", value, "payServerId");
            return (Criteria) this;
        }

        public Criteria andPayServerIdLessThan(Integer value) {
            addCriterion("pay_server_id <", value, "payServerId");
            return (Criteria) this;
        }

        public Criteria andPayServerIdLessThanOrEqualTo(Integer value) {
            addCriterion("pay_server_id <=", value, "payServerId");
            return (Criteria) this;
        }

        public Criteria andPayServerIdIn(List<Integer> values) {
            addCriterion("pay_server_id in", values, "payServerId");
            return (Criteria) this;
        }

        public Criteria andPayServerIdNotIn(List<Integer> values) {
            addCriterion("pay_server_id not in", values, "payServerId");
            return (Criteria) this;
        }

        public Criteria andPayServerIdBetween(Integer value1, Integer value2) {
            addCriterion("pay_server_id between", value1, value2, "payServerId");
            return (Criteria) this;
        }

        public Criteria andPayServerIdNotBetween(Integer value1, Integer value2) {
            addCriterion("pay_server_id not between", value1, value2, "payServerId");
            return (Criteria) this;
        }

        public Criteria andPayServerNameIsNull() {
            addCriterion("pay_server_name is null");
            return (Criteria) this;
        }

        public Criteria andPayServerNameIsNotNull() {
            addCriterion("pay_server_name is not null");
            return (Criteria) this;
        }

        public Criteria andPayServerNameEqualTo(String value) {
            addCriterion("pay_server_name =", value, "payServerName");
            return (Criteria) this;
        }

        public Criteria andPayServerNameNotEqualTo(String value) {
            addCriterion("pay_server_name <>", value, "payServerName");
            return (Criteria) this;
        }

        public Criteria andPayServerNameGreaterThan(String value) {
            addCriterion("pay_server_name >", value, "payServerName");
            return (Criteria) this;
        }

        public Criteria andPayServerNameGreaterThanOrEqualTo(String value) {
            addCriterion("pay_server_name >=", value, "payServerName");
            return (Criteria) this;
        }

        public Criteria andPayServerNameLessThan(String value) {
            addCriterion("pay_server_name <", value, "payServerName");
            return (Criteria) this;
        }

        public Criteria andPayServerNameLessThanOrEqualTo(String value) {
            addCriterion("pay_server_name <=", value, "payServerName");
            return (Criteria) this;
        }

        public Criteria andPayServerNameLike(String value) {
            addCriterion("pay_server_name like", value, "payServerName");
            return (Criteria) this;
        }

        public Criteria andPayServerNameNotLike(String value) {
            addCriterion("pay_server_name not like", value, "payServerName");
            return (Criteria) this;
        }

        public Criteria andPayServerNameIn(List<String> values) {
            addCriterion("pay_server_name in", values, "payServerName");
            return (Criteria) this;
        }

        public Criteria andPayServerNameNotIn(List<String> values) {
            addCriterion("pay_server_name not in", values, "payServerName");
            return (Criteria) this;
        }

        public Criteria andPayServerNameBetween(String value1, String value2) {
            addCriterion("pay_server_name between", value1, value2, "payServerName");
            return (Criteria) this;
        }

        public Criteria andPayServerNameNotBetween(String value1, String value2) {
            addCriterion("pay_server_name not between", value1, value2, "payServerName");
            return (Criteria) this;
        }

        public Criteria andPayRuleIsNull() {
            addCriterion("pay_rule is null");
            return (Criteria) this;
        }

        public Criteria andPayRuleIsNotNull() {
            addCriterion("pay_rule is not null");
            return (Criteria) this;
        }

        public Criteria andPayRuleEqualTo(Short value) {
            addCriterion("pay_rule =", value, "payRule");
            return (Criteria) this;
        }

        public Criteria andPayRuleNotEqualTo(Short value) {
            addCriterion("pay_rule <>", value, "payRule");
            return (Criteria) this;
        }

        public Criteria andPayRuleGreaterThan(Short value) {
            addCriterion("pay_rule >", value, "payRule");
            return (Criteria) this;
        }

        public Criteria andPayRuleGreaterThanOrEqualTo(Short value) {
            addCriterion("pay_rule >=", value, "payRule");
            return (Criteria) this;
        }

        public Criteria andPayRuleLessThan(Short value) {
            addCriterion("pay_rule <", value, "payRule");
            return (Criteria) this;
        }

        public Criteria andPayRuleLessThanOrEqualTo(Short value) {
            addCriterion("pay_rule <=", value, "payRule");
            return (Criteria) this;
        }

        public Criteria andPayRuleIn(List<Short> values) {
            addCriterion("pay_rule in", values, "payRule");
            return (Criteria) this;
        }

        public Criteria andPayRuleNotIn(List<Short> values) {
            addCriterion("pay_rule not in", values, "payRule");
            return (Criteria) this;
        }

        public Criteria andPayRuleBetween(Short value1, Short value2) {
            addCriterion("pay_rule between", value1, value2, "payRule");
            return (Criteria) this;
        }

        public Criteria andPayRuleNotBetween(Short value1, Short value2) {
            addCriterion("pay_rule not between", value1, value2, "payRule");
            return (Criteria) this;
        }

        public Criteria andParam1IsNull() {
            addCriterion("param1 is null");
            return (Criteria) this;
        }

        public Criteria andParam1IsNotNull() {
            addCriterion("param1 is not null");
            return (Criteria) this;
        }

        public Criteria andParam1EqualTo(Float value) {
            addCriterion("param1 =", value, "param1");
            return (Criteria) this;
        }

        public Criteria andParam1NotEqualTo(Float value) {
            addCriterion("param1 <>", value, "param1");
            return (Criteria) this;
        }

        public Criteria andParam1GreaterThan(Float value) {
            addCriterion("param1 >", value, "param1");
            return (Criteria) this;
        }

        public Criteria andParam1GreaterThanOrEqualTo(Float value) {
            addCriterion("param1 >=", value, "param1");
            return (Criteria) this;
        }

        public Criteria andParam1LessThan(Float value) {
            addCriterion("param1 <", value, "param1");
            return (Criteria) this;
        }

        public Criteria andParam1LessThanOrEqualTo(Float value) {
            addCriterion("param1 <=", value, "param1");
            return (Criteria) this;
        }

        public Criteria andParam1In(List<Float> values) {
            addCriterion("param1 in", values, "param1");
            return (Criteria) this;
        }

        public Criteria andParam1NotIn(List<Float> values) {
            addCriterion("param1 not in", values, "param1");
            return (Criteria) this;
        }

        public Criteria andParam1Between(Float value1, Float value2) {
            addCriterion("param1 between", value1, value2, "param1");
            return (Criteria) this;
        }

        public Criteria andParam1NotBetween(Float value1, Float value2) {
            addCriterion("param1 not between", value1, value2, "param1");
            return (Criteria) this;
        }

        public Criteria andParam2IsNull() {
            addCriterion("param2 is null");
            return (Criteria) this;
        }

        public Criteria andParam2IsNotNull() {
            addCriterion("param2 is not null");
            return (Criteria) this;
        }

        public Criteria andParam2EqualTo(Float value) {
            addCriterion("param2 =", value, "param2");
            return (Criteria) this;
        }

        public Criteria andParam2NotEqualTo(Float value) {
            addCriterion("param2 <>", value, "param2");
            return (Criteria) this;
        }

        public Criteria andParam2GreaterThan(Float value) {
            addCriterion("param2 >", value, "param2");
            return (Criteria) this;
        }

        public Criteria andParam2GreaterThanOrEqualTo(Float value) {
            addCriterion("param2 >=", value, "param2");
            return (Criteria) this;
        }

        public Criteria andParam2LessThan(Float value) {
            addCriterion("param2 <", value, "param2");
            return (Criteria) this;
        }

        public Criteria andParam2LessThanOrEqualTo(Float value) {
            addCriterion("param2 <=", value, "param2");
            return (Criteria) this;
        }

        public Criteria andParam2In(List<Float> values) {
            addCriterion("param2 in", values, "param2");
            return (Criteria) this;
        }

        public Criteria andParam2NotIn(List<Float> values) {
            addCriterion("param2 not in", values, "param2");
            return (Criteria) this;
        }

        public Criteria andParam2Between(Float value1, Float value2) {
            addCriterion("param2 between", value1, value2, "param2");
            return (Criteria) this;
        }

        public Criteria andParam2NotBetween(Float value1, Float value2) {
            addCriterion("param2 not between", value1, value2, "param2");
            return (Criteria) this;
        }

        public Criteria andParam3IsNull() {
            addCriterion("param3 is null");
            return (Criteria) this;
        }

        public Criteria andParam3IsNotNull() {
            addCriterion("param3 is not null");
            return (Criteria) this;
        }

        public Criteria andParam3EqualTo(Float value) {
            addCriterion("param3 =", value, "param3");
            return (Criteria) this;
        }

        public Criteria andParam3NotEqualTo(Float value) {
            addCriterion("param3 <>", value, "param3");
            return (Criteria) this;
        }

        public Criteria andParam3GreaterThan(Float value) {
            addCriterion("param3 >", value, "param3");
            return (Criteria) this;
        }

        public Criteria andParam3GreaterThanOrEqualTo(Float value) {
            addCriterion("param3 >=", value, "param3");
            return (Criteria) this;
        }

        public Criteria andParam3LessThan(Float value) {
            addCriterion("param3 <", value, "param3");
            return (Criteria) this;
        }

        public Criteria andParam3LessThanOrEqualTo(Float value) {
            addCriterion("param3 <=", value, "param3");
            return (Criteria) this;
        }

        public Criteria andParam3In(List<Float> values) {
            addCriterion("param3 in", values, "param3");
            return (Criteria) this;
        }

        public Criteria andParam3NotIn(List<Float> values) {
            addCriterion("param3 not in", values, "param3");
            return (Criteria) this;
        }

        public Criteria andParam3Between(Float value1, Float value2) {
            addCriterion("param3 between", value1, value2, "param3");
            return (Criteria) this;
        }

        public Criteria andParam3NotBetween(Float value1, Float value2) {
            addCriterion("param3 not between", value1, value2, "param3");
            return (Criteria) this;
        }

        public Criteria andParam4IsNull() {
            addCriterion("param4 is null");
            return (Criteria) this;
        }

        public Criteria andParam4IsNotNull() {
            addCriterion("param4 is not null");
            return (Criteria) this;
        }

        public Criteria andParam4EqualTo(Float value) {
            addCriterion("param4 =", value, "param4");
            return (Criteria) this;
        }

        public Criteria andParam4NotEqualTo(Float value) {
            addCriterion("param4 <>", value, "param4");
            return (Criteria) this;
        }

        public Criteria andParam4GreaterThan(Float value) {
            addCriterion("param4 >", value, "param4");
            return (Criteria) this;
        }

        public Criteria andParam4GreaterThanOrEqualTo(Float value) {
            addCriterion("param4 >=", value, "param4");
            return (Criteria) this;
        }

        public Criteria andParam4LessThan(Float value) {
            addCriterion("param4 <", value, "param4");
            return (Criteria) this;
        }

        public Criteria andParam4LessThanOrEqualTo(Float value) {
            addCriterion("param4 <=", value, "param4");
            return (Criteria) this;
        }

        public Criteria andParam4In(List<Float> values) {
            addCriterion("param4 in", values, "param4");
            return (Criteria) this;
        }

        public Criteria andParam4NotIn(List<Float> values) {
            addCriterion("param4 not in", values, "param4");
            return (Criteria) this;
        }

        public Criteria andParam4Between(Float value1, Float value2) {
            addCriterion("param4 between", value1, value2, "param4");
            return (Criteria) this;
        }

        public Criteria andParam4NotBetween(Float value1, Float value2) {
            addCriterion("param4 not between", value1, value2, "param4");
            return (Criteria) this;
        }

        public Criteria andParam5IsNull() {
            addCriterion("param5 is null");
            return (Criteria) this;
        }

        public Criteria andParam5IsNotNull() {
            addCriterion("param5 is not null");
            return (Criteria) this;
        }

        public Criteria andParam5EqualTo(Float value) {
            addCriterion("param5 =", value, "param5");
            return (Criteria) this;
        }

        public Criteria andParam5NotEqualTo(Float value) {
            addCriterion("param5 <>", value, "param5");
            return (Criteria) this;
        }

        public Criteria andParam5GreaterThan(Float value) {
            addCriterion("param5 >", value, "param5");
            return (Criteria) this;
        }

        public Criteria andParam5GreaterThanOrEqualTo(Float value) {
            addCriterion("param5 >=", value, "param5");
            return (Criteria) this;
        }

        public Criteria andParam5LessThan(Float value) {
            addCriterion("param5 <", value, "param5");
            return (Criteria) this;
        }

        public Criteria andParam5LessThanOrEqualTo(Float value) {
            addCriterion("param5 <=", value, "param5");
            return (Criteria) this;
        }

        public Criteria andParam5In(List<Float> values) {
            addCriterion("param5 in", values, "param5");
            return (Criteria) this;
        }

        public Criteria andParam5NotIn(List<Float> values) {
            addCriterion("param5 not in", values, "param5");
            return (Criteria) this;
        }

        public Criteria andParam5Between(Float value1, Float value2) {
            addCriterion("param5 between", value1, value2, "param5");
            return (Criteria) this;
        }

        public Criteria andParam5NotBetween(Float value1, Float value2) {
            addCriterion("param5 not between", value1, value2, "param5");
            return (Criteria) this;
        }

        public Criteria andParam6IsNull() {
            addCriterion("param6 is null");
            return (Criteria) this;
        }

        public Criteria andParam6IsNotNull() {
            addCriterion("param6 is not null");
            return (Criteria) this;
        }

        public Criteria andParam6EqualTo(Float value) {
            addCriterion("param6 =", value, "param6");
            return (Criteria) this;
        }

        public Criteria andParam6NotEqualTo(Float value) {
            addCriterion("param6 <>", value, "param6");
            return (Criteria) this;
        }

        public Criteria andParam6GreaterThan(Float value) {
            addCriterion("param6 >", value, "param6");
            return (Criteria) this;
        }

        public Criteria andParam6GreaterThanOrEqualTo(Float value) {
            addCriterion("param6 >=", value, "param6");
            return (Criteria) this;
        }

        public Criteria andParam6LessThan(Float value) {
            addCriterion("param6 <", value, "param6");
            return (Criteria) this;
        }

        public Criteria andParam6LessThanOrEqualTo(Float value) {
            addCriterion("param6 <=", value, "param6");
            return (Criteria) this;
        }

        public Criteria andParam6In(List<Float> values) {
            addCriterion("param6 in", values, "param6");
            return (Criteria) this;
        }

        public Criteria andParam6NotIn(List<Float> values) {
            addCriterion("param6 not in", values, "param6");
            return (Criteria) this;
        }

        public Criteria andParam6Between(Float value1, Float value2) {
            addCriterion("param6 between", value1, value2, "param6");
            return (Criteria) this;
        }

        public Criteria andParam6NotBetween(Float value1, Float value2) {
            addCriterion("param6 not between", value1, value2, "param6");
            return (Criteria) this;
        }

        public Criteria andEnableIsNull() {
            addCriterion("enable is null");
            return (Criteria) this;
        }

        public Criteria andEnableIsNotNull() {
            addCriterion("enable is not null");
            return (Criteria) this;
        }

        public Criteria andEnableEqualTo(Byte value) {
            addCriterion("enable =", value, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableNotEqualTo(Byte value) {
            addCriterion("enable <>", value, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableGreaterThan(Byte value) {
            addCriterion("enable >", value, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableGreaterThanOrEqualTo(Byte value) {
            addCriterion("enable >=", value, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableLessThan(Byte value) {
            addCriterion("enable <", value, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableLessThanOrEqualTo(Byte value) {
            addCriterion("enable <=", value, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableIn(List<Byte> values) {
            addCriterion("enable in", values, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableNotIn(List<Byte> values) {
            addCriterion("enable not in", values, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableBetween(Byte value1, Byte value2) {
            addCriterion("enable between", value1, value2, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableNotBetween(Byte value1, Byte value2) {
            addCriterion("enable not between", value1, value2, "enable");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}